<h1>Websites List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Url</th>
      <th>Person</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($websites_list as $websites): ?>
    <tr>
      <td><a href="<?php echo url_for('websites/show?id='.$websites['id']) ?>"><?php echo $websites->getid() ?></a></td>
      <td><?php echo $websites->geturl() ?></td>
      <td><?php echo $websites->getperson_id() ?></td>
      <td><?php echo $websites->getcreated_at() ?></td>
      <td><?php echo $websites->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('websites/new') ?>">New</a>
